import request from '@/utils/request'

// 查询代理命令列表
export function listCommand(query) {
  return request({
    url: '/system/command/list',
    method: 'get',
    params: query
  })
}

// 查询代理命令详细
export function getCommand(id) {
  return request({
    url: '/system/command/' + id,
    method: 'get'
  })
}

// 新增代理命令
export function addCommand(data) {
  return request({
    url: '/system/command',
    method: 'post',
    data: data
  })
}

// 修改代理命令
export function updateCommand(data) {
  return request({
    url: '/system/command',
    method: 'put',
    data: data
  })
}

// 删除代理命令
export function delCommand(id) {
  return request({
    url: '/system/command/' + id,
    method: 'delete'
  })
}

// 导出代理命令
export function exportCommand(query) {
  return request({
    url: '/system/command/export',
    method: 'get',
    params: query
  })
}